<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="/includes.jsp"%>

<ul id="childList">
    <logic:empty name="linkedDTOs">
        <li>empty</li>
    </logic:empty>
    <logic:iterate name="linkedDTOs" id="linked">
        <li style="list-style-image: url(
        <logic:equal name="linked" property="type" value="Action">
            <logic:equal name="linked" property="isActive" value="true"><html:rewrite page='/icons/action-16x16.png'/></logic:equal>
            <logic:equal name="linked" property="isActive" value="false"><html:rewrite page='/icons/action-resolved-16x16.png'/></logic:equal>
        </logic:equal>
        <logic:equal name="linked" property="type" value="Anchor"><html:rewrite page='/icons/anchor-16x16.png'/></logic:equal>
        <logic:equal name="linked" property="type" value="ContactDetailTypes"><html:rewrite page='/icons/contactdetail-16x16.png'/></logic:equal>
        <logic:equal name="linked" property="type" value="Department"><html:rewrite page='/icons/department-16x16.png'/></logic:equal>
        <logic:equal name="linked" property="type" value="Group"><html:rewrite page='/icons/group-16x16.png'/></logic:equal>
        <logic:equal name="linked" property="type" value="Issue">
            <logic:equal name="linked" property="isActive" value="true"><html:rewrite page='/icons/issue-16x16.png'/></logic:equal>
            <logic:equal name="linked" property="isActive" value="false"><html:rewrite page='/icons/issue-resolved-16x16.png'/></logic:equal>
        </logic:equal>
        <logic:equal name="linked" property="type" value="LicenceManagement"><html:rewrite page='/icons/licencemanagement-16x16.png'/></logic:equal>
        <logic:equal name="linked" property="type" value="LoginHistory"><html:rewrite page='/icons/loginhistory-16x16.png'/></logic:equal>
        <logic:equal name="linked" property="type" value="Node"><html:rewrite page='/icons/node-16x16.png'/></logic:equal>
        <logic:equal name="linked" property="type" value="Organisation"><html:rewrite page='/icons/organisation-16x16.png'/></logic:equal>
        <logic:equal name="linked" property="type" value="Person"><html:rewrite page='/icons/person-16x16.png'/></logic:equal>
        <logic:equal name="linked" property="type" value="Project">
            <logic:equal name="linked" property="isActive" value="true"><html:rewrite page='/icons/project-16x16.png'/></logic:equal>
            <logic:equal name="linked" property="isActive" value="false"><html:rewrite page='/icons/project-resolved-16x16.png'/></logic:equal>
        </logic:equal>
        <logic:equal name="linked" property="type" value="Role"><html:rewrite page='/icons/role-16x16.png'/></logic:equal>
        <logic:equal name="linked" property="type" value="Sprint"><html:rewrite page='/icons/sprint-16x16.png'/></logic:equal>
        <logic:equal name="linked" property="type" value="State"><html:rewrite page='/icons/state-16x16.png'/></logic:equal>
        <logic:equal name="linked" property="type" value="Status"><html:rewrite page='/icons/status-16x16.png'/></logic:equal>
        <logic:equal name="linked" property="type" value="SystemNode"><html:rewrite page='/icons/systemnode-16x16.png'/></logic:equal>
        <logic:equal name="linked" property="type" value="SystemProperties"><html:rewrite page='/icons/systemproperty-16x16.png'/></logic:equal>
        <logic:equal name="linked" property="type" value="TaskStateMachine"><html:rewrite page='/icons/task-16x16.png'/></logic:equal>
        <logic:equal name="linked" property="type" value="User">
            <logic:equal name="linked" property="isActive" value="true"><html:rewrite page='/icons/user-enabled-16x16.png'/></logic:equal>
            <logic:equal name="linked" property="isActive" value="false"><html:rewrite page='/icons/user-16x16.png'/></logic:equal>
        </logic:equal>
        )">
            <html:link action="showNode.do" paramId="nodeId" paramName="linked" paramProperty="nodeId">
                <beans:write name="linked" property="name"/><span><beans:write name="linked" property="name"/></span>
            </html:link>
        </li>
    </logic:iterate>
</ul>
